package com.hitqz.robot.api.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author xupkun
 * @date 2024/6/6
 */
@Data
@TableName("robot_map_area_pos")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "机器人区域点位")
public class RobotMapAreaPosEntity extends Model<RobotMapAreaPosEntity> {

	@TableId(type = IdType.AUTO)
	@Schema(description="id")
	private Integer id;

	@Schema(description = "所属区域")
	private Integer areaId;

	@Schema(description = "机器人坐标x")
	private double posx;

	@Schema(description = "机器人坐标y")
	private double posy;

	@Schema(description = "机器人角度")
	private double yaw;

	@Schema(description = "画布坐标")
	private double canvasPosx;

	@Schema(description = "画布坐标")
	private double canvasPosy;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public double getPosx() {
		return posx;
	}

	public void setPosx(double posx) {
		this.posx = posx;
	}

	public double getPosy() {
		return posy;
	}

	public void setPosy(double posy) {
		this.posy = posy;
	}

	public double getYaw() {
		return yaw;
	}

	public void setYaw(double yaw) {
		this.yaw = yaw;
	}

	public double getCanvasPosx() {
		return canvasPosx;
	}

	public void setCanvasPosx(double canvasPosx) {
		this.canvasPosx = canvasPosx;
	}

	public double getCanvasPosy() {
		return canvasPosy;
	}

	public void setCanvasPosy(double canvasPosy) {
		this.canvasPosy = canvasPosy;
	}

	public Integer getAreaId() {
		return areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}
}
